public class test {
    public static void main(String[] args) {
        Demo demo = new Demo();
        int[] cur = {5,7,7,8,8,10};
        demo.searchRange(cur,8);
    }
}
